function create_await(samplerate,seconds,filename)
	subpart.active_length = 1000e-3;
	subpart.full_length = 5000e-3;
	subpart.center_frequency = 430;
	
	subpart.sound_samples = subpart.active_length * samplerate;
	subpart.silence_samples = (subpart.full_length-subpart.active_length) * samplerate;
	subpart.full_samples = subpart.full_length * samplerate;
	
	
	subpart.data = zeros(subpart.full_samples,1);
	subpart.data(1:subpart.sound_samples) = sin( ...
		2*pi*(0:1:(subpart.sound_samples-1)) * ...
		subpart.center_frequency / samplerate ...
		);
	
	subparts = ceil(seconds / subpart.full_length); % Количество частей, перекрывающих заданный временнной диапазон
	required_length = seconds * samplerate; % Запрошенная длина фрагмента в отсчетах
	
	full_data = zeros(subparts*subpart.full_samples,1);
	for ii=0:1:subparts-1
		full_data(ii*subpart.full_samples+1:(ii+1)*subpart.full_samples) = ...
		subpart.data;
	end
	
	full_data = full_data(1:required_length);
	
	wavwrite(full_data,samplerate,filename);
end